package hch.redesFerroviarias;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintStream;

public class ThreadPasamanos extends Thread {
	PrintStream serverOut2;
	BufferedReader serverIn1;
	
	public ThreadPasamanos(PrintStream ps, BufferedReader br) {
		this.serverOut2 = ps;
		this.serverIn1 = br;
	}
	
	@Override
	public void run() {
		while(true){
			try {
				String p = serverIn1.readLine();
				serverOut2.println(p);

			} catch (IOException e) {}
		}
	}
	

}
